
/**
 * 题目一：实现双色球抽奖游戏中奖号码的生成
 */
import java.util.Random;
public class Lottery_game {
    public static void main(String[] args){
        Random ra =  new Random();
        //生成一个整数变量存储蓝色球的号码
        int blue_ball = ra.nextInt(17) + 1;
        System.out.print("蓝色球的号码是：" + blue_ball);
        System.out.println();

        //新建一个长度为6的数组来存储六个红色球的号码
        int[] red_ball = new int[6];
        System.out.print("红色球的号码是：" );
        for(int i = 0; i < red_ball.length; i++){
            red_ball[i] = ra.nextInt(33) + 1;
            System.out.print( red_ball[i] + " ");
        }
        System.out.println();


    }
}
